package com.cxria.shiro.service;

import com.cxria.shiro.dto.PageDto;
import com.cxria.shiro.entity.Permission;
import com.cxria.shiro.entity.Role;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Set;

public interface ShiroRoleService {

	void save(Role role);

	Role getByRoleName(String roleName);

	Role getById(long id);

	List<Role> getAll();

	Page<Role> getByPage(PageDto<Role> pageDto);

	void delete(Long roleId);

}
